package com.nofeng.wx.controller;

import com.alibaba.fastjson.JSONObject;
import com.nofeng.wx.controller.stock.view.OnHandView;
import com.nofeng.wx.dao.entity.AppConfig;
import com.nofeng.wx.service.AppConfigService;
import com.nofeng.wx.third.WeixinApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class gatewayController {

    @Autowired
    WeixinApi weixinApi;
    @RequestMapping(value = "/gateway/{patch}")
    public String onHandForCode(@PathVariable String patch) {
        String url="http://8.138.24.62:8080/"+patch;
        return weixinApi.get(url);
    }
}
